﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.Supplier
{
    /// <summary>
    /// 供应商信息录入命令
    /// </summary>
    public class CreateSupplierCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanName { get; set; }

        /// <summary>
        /// 公司地址(文本框)
        /// </summary>
        public string CompanAddr { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Desc { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 社会信用代码
        /// </summary>
        public string SocialCreditCode { get; set; }

        ///// <summary>
        ///// 入库单明细外键
        ///// </summary>
        //public int StockInOrder { get; set; }

        /// <summary>
        /// 仓库id
        /// </summary>
        public int WarehouseId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(50)]
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
